package cn.tedu.service.impl;

import cn.tedu.mapper.UserMapper;
import cn.tedu.pojo.User;
import cn.tedu.service.UserService;

public class UserServiceImpl implements UserService {
    private UserMapper usermapper;
    public void setUsermapper(UserMapper usermapper) {
        this.usermapper = usermapper;
    }

    @Override
    public int insert(User sysUser) {
        return usermapper.insert(sysUser);
    }

    @Override
    public User selectById(int id) {
        return usermapper.selectById(id);
    }

    @Override
    public long selectUser(User sysUser) {
        return usermapper.selectUser(sysUser);
    }

}